package cn.wolfcode.car.domain;

import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class ConsumptionItem {
    private Long id;

    //private Long categoryId;

    private SystemDictionaryItem category = new SystemDictionaryItem();

    //private Long categoryItemId;
    private SystemDictionaryItem categoryItem = new SystemDictionaryItem();

    //private Long payTypeId;
    private SystemDictionaryItem payType = new SystemDictionaryItem();

    private BigDecimal amount;

    private BigDecimal payAmount;

    private BigDecimal discountAmount;

    private Long createUserId;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private String cno;

}